Creation information for a buffer. More...
#include <kanzi/gfx/create_info.hpp>
Public Types | |
| using | HandleType |
Public Attributes | |
| AccessFlag | cpuAccessFlag |
| Required CPU access for the buffer. | |
| span< const byte > | initialData |
| Initial data for the buffer. | |
| uint32_t | size |
| Size of the buffer in bytes. | |
| BufferUsageFlag | usageFlag |
| Expected usage of the buffer. | |
Public Attributes inherited from kanzi::gfx::BaseCreateInfo | |
| string_view | name |
| The name of the graphics object, useful for debugging. | |
Creation information for a buffer.
A buffer is a general-use block of memory that you can use for uniforms, staging data, or other arbitrary uses.
| uint32_t kanzi::gfx::BufferCreateInfo::size |
Size of the buffer in bytes.
| BufferUsageFlag kanzi::gfx::BufferCreateInfo::usageFlag |
Expected usage of the buffer.
| AccessFlag kanzi::gfx::BufferCreateInfo::cpuAccessFlag |
Required CPU access for the buffer.
Initial data for the buffer.
The local copy of this data is only required during the create function.